.class Lcom/xingbook/paint/f;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/SeekBar$OnSeekBarChangeListener;


# instance fields
.field final synthetic a:Lcom/xingbook/paint/PaintGameAct;


# direct methods
.method constructor <init>(Lcom/xingbook/paint/PaintGameAct;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onProgressChanged(Landroid/widget/SeekBar;IZ)V
    .locals 4

    const/high16 v0, 0x3f80

    if-eqz p3, :cond_0

    iget-object v1, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v1}, Lcom/xingbook/paint/PaintGameAct;->a(Lcom/xingbook/paint/PaintGameAct;)I

    move-result v1

    mul-int/2addr v1, p2

    int-to-float v1, v1

    const/high16 v2, 0x447a

    div-float/2addr v1, v2

    iget-object v2, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    iget-object v2, v2, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v2}, Lcom/xingbook/paint/view/PaintView;->getCurrentPainter()I

    move-result v2

    const/4 v3, 0x5

    if-ne v2, v3, :cond_2

    const/high16 v2, 0x3fc0

    mul-float/2addr v1, v2

    cmpg-float v2, v1, v0

    if-gez v2, :cond_1

    :goto_0
    iget-object v1, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    iget-object v1, v1, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    float-to-int v2, v0

    invoke-virtual {v1, v2}, Lcom/xingbook/paint/view/PaintView;->setEraserSize(I)V

    iget-object v1, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v1}, Lcom/xingbook/paint/PaintGameAct;->b(Lcom/xingbook/paint/PaintGameAct;)[I

    move-result-object v1

    const/4 v2, 0x6

    float-to-int v3, v0

    aput v3, v1, v2

    :goto_1
    iget-object v1, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v1}, Lcom/xingbook/paint/PaintGameAct;->d(Lcom/xingbook/paint/PaintGameAct;)Landroid/widget/LinearLayout$LayoutParams;

    move-result-object v2

    float-to-int v1, v0

    iget-object v3, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v3}, Lcom/xingbook/paint/PaintGameAct;->a(Lcom/xingbook/paint/PaintGameAct;)I

    move-result v3

    if-ge v1, v3, :cond_4

    float-to-int v1, v0

    add-int/lit8 v1, v1, 0x3

    :goto_2
    iput v1, v2, Landroid/widget/LinearLayout$LayoutParams;->width:I

    iget-object v1, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v1}, Lcom/xingbook/paint/PaintGameAct;->d(Lcom/xingbook/paint/PaintGameAct;)Landroid/widget/LinearLayout$LayoutParams;

    move-result-object v1

    float-to-int v2, v0

    iget-object v3, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v3}, Lcom/xingbook/paint/PaintGameAct;->a(Lcom/xingbook/paint/PaintGameAct;)I

    move-result v3

    if-ge v2, v3, :cond_5

    float-to-int v0, v0

    add-int/lit8 v0, v0, 0x3

    :goto_3
    iput v0, v1, Landroid/widget/LinearLayout$LayoutParams;->height:I

    iget-object v0, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v0}, Lcom/xingbook/paint/PaintGameAct;->e(Lcom/xingbook/paint/PaintGameAct;)Landroid/widget/ImageView;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v1}, Lcom/xingbook/paint/PaintGameAct;->d(Lcom/xingbook/paint/PaintGameAct;)Landroid/widget/LinearLayout$LayoutParams;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    return-void

    :cond_1
    move v0, v1

    goto :goto_0

    :cond_2
    cmpg-float v2, v1, v0

    if-gez v2, :cond_3

    :goto_4
    iget-object v1, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    iget-object v1, v1, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    float-to-int v2, v0

    invoke-virtual {v1, v2}, Lcom/xingbook/paint/view/PaintView;->setBrushSize(I)V

    iget-object v1, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v1}, Lcom/xingbook/paint/PaintGameAct;->b(Lcom/xingbook/paint/PaintGameAct;)[I

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/paint/f;->a:Lcom/xingbook/paint/PaintGameAct;

    invoke-static {v2}, Lcom/xingbook/paint/PaintGameAct;->c(Lcom/xingbook/paint/PaintGameAct;)I

    move-result v2

    float-to-int v3, v0

    aput v3, v1, v2

    goto :goto_1

    :cond_3
    move v0, v1

    goto :goto_4

    :cond_4
    float-to-int v1, v0

    goto :goto_2

    :cond_5
    float-to-int v0, v0

    goto :goto_3
.end method

.method public onStartTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 0

    return-void
.end method

.method public onStopTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 0

    return-void
.end method
